<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改学生详情')" />
    <th:block th:include="include :: bootstrap-fileinput-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-studentDetails-edit" th:object="${studentDetails}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名：</label>
            <div class="col-sm-8">
                <input name="name" th:field="*{name}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">性别：</label>
            <div class="col-sm-8">
                <input name="gender" th:field="*{gender}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">民族：</label>
            <div class="col-sm-8">
                <input name="nationality" th:field="*{nationality}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">身份证号码：</label>
            <div class="col-sm-8">
                <input name="identificationNumber" th:field="*{identificationNumber}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">政治面貌：</label>
            <div class="col-sm-8">
                <input name="politicalStatus" th:field="*{politicalStatus}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">手机：</label>
            <div class="col-sm-8">
                <input name="mobilePhone" th:field="*{mobilePhone}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">紧急联系人电话：</label>
            <div class="col-sm-8">
                <input name="backupPhone" th:field="*{backupPhone}" class="form-control" type="text">
            </div>
        </div>
      <!--  <div class="form-group">
            <label class="col-sm-3 control-label">招生老师：</label>
            <div class="col-sm-8">
                <input name="admissionsTeacher"  th:field="*{admissionsTeacher}"class="form-control" type="text">
            </div>
        </div>-->

        <div class="form-group">
            <label class="col-sm-3 control-label">邮箱：</label>
            <div class="col-sm-8">
                <input name="mail" th:field="*{mail}" class="form-control" type="text">
            </div>
        </div>
 <!--       <div class="form-group">
            <label class="col-sm-3 control-label">微信：</label>
            <div class="col-sm-8">
                <input name="wechat" th:field="*{wechat}" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">文化程度：</label>
            <div class="col-sm-8">
                <input name="educationalLevel" th:field="*{educationalLevel}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">毕业学校：</label>
            <div class="col-sm-8">
                <input name="graduatedSchool" th:field="*{graduatedSchool}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">毕业证书编号：</label>
            <div class="col-sm-8">
                <input name="graduationCertificateNumber" th:field="*{graduationCertificateNumber}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">毕业日期：</label>
            <div class="col-sm-8">
                <input name="graduationDate" th:field="*{graduationDate}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">参加工作时间：</label>
            <div class="col-sm-8">
                <input name="graduationDate" th:field="*{workingHours}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">户籍所在地：</label>
            <div class="col-sm-8">
                <input name="placeOfResidence" th:field="*{placeOfResidence}" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">
            <label class="col-sm-3 control-label">考成人高考考试所在省：</label>
            <div class="col-sm-8">
                <input name="examinationProvince" th:field="*{examinationProvince}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">考成人高考考试所在市：</label>
            <div class="col-sm-8">
                <input name="examinationCity" th:field="*{examinationCity}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">考成人高考考试所在地区/县：</label>
            <div class="col-sm-8">
                <input name="examinationCounty" th:field="*{examinationCounty}" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">考试所在地：</label>
            <div class="col-sm-8">
                <input name="examinationBuilding" th:field="*{examinationBuilding}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">通讯地址：</label>
            <div class="col-sm-8">
                <input name="reviewMaterialsAddress" th:field="*{reviewMaterialsAddress}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">报考层次：</label>
            <div class="col-sm-8">
                <input name="level1" th:field="*{level1}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">科类名称：</label>
            <div class="col-sm-8">
                <input name="subjectName1" th:field="*{subjectName1}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">学习形式：</label>
            <div class="col-sm-8">
                <input name="modality1" th:field="*{modality1}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">报考院校名称1：</label>
            <div class="col-sm-8">
                <input name="collegeName1" th:field="*{collegeName1}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">报考专业1：</label>
            <div class="col-sm-8">
                <input name="applicationMajor1" th:field="*{applicationMajor1}" class="form-control" type="text">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">报考院校名称2：</label>
            <div class="col-sm-8">
                <input name="collegeName2" th:field="*{collegeName2}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">报考专业2：</label>
            <div class="col-sm-8">
                <input name="applicationMajor2" th:field="*{applicationMajor2}" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">
            <label class="col-sm-3 control-label">志愿填报2层次：</label>
            <div class="col-sm-8">
                <input name="level2" th:field="*{level2}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿填报2科类名称：</label>
            <div class="col-sm-8">
                <input name="subjectName2" th:field="*{subjectName2}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿填报2形式：</label>
            <div class="col-sm-8">
                <input name="modality2" th:field="*{modality2}" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">报考院校名称3：</label>
            <div class="col-sm-8">
                <input name="collegeName3" th:field="*{collegeName3}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">报考专业3：</label>
            <div class="col-sm-8">
                <input name="applicationMajor3" th:field="*{applicationMajor3}" class="form-control" type="text">
            </div>
        </div>
       <!-- <div class="form-group">
            <label class="col-sm-3 control-label">志愿填报3层次：</label>
            <div class="col-sm-8">
                <input name="level3" th:field="*{level3}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿填报3科类名称：</label>
            <div class="col-sm-8">
                <input name="subjectName3" th:field="*{subjectName3}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">志愿填报3形式：</label>
            <div class="col-sm-8">
                <input name="modality3" th:field="*{modality3}" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">招生老师：</label>
            <div class="col-sm-8">
                <input name="classTeacher" th:field="*{classTeacher}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">批次：</label>
            <div class="col-sm-8">
                <input name="batch" th:field="*{batch}" class="form-control" type="text">
            </div>
        </div>
    <!--    <div class="form-group">
            <label class="col-sm-3 control-label">身份证正面照片：</label>
            <div class="col-sm-8">
                <input type="hidden" name="frontPhotoOfIdCard" th:field="*{frontPhotoOfIdCard}">
                <div class="file-loading">
                    <input class="form-control file-upload" id="frontPhotoOfIdCard" name="file" type="file">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">身份证背面照片：</label>
            <div class="col-sm-8">
                <input type="hidden" name="backPhotoOfIdCard" th:field="*{backPhotoOfIdCard}">
                <div class="file-loading">
                    <input class="form-control file-upload" id="backPhotoOfIdCard" name="file" type="file">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">毕业证照片：</label>
            <div class="col-sm-8">
                <input type="hidden" name="photoOfGraduationCertificate" th:field="*{photoOfGraduationCertificate}">
                <div class="file-loading">
                    <input class="form-control file-upload" id="photoOfGraduationCertificate" name="file" type="file">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">医学相关资格证照片：</label>
            <div class="col-sm-8">
                <input type="hidden" name="medicalCertificatePhotos" th:field="*{medicalCertificatePhotos}">
                <div class="file-loading">
                    <input class="form-control file-upload" id="medicalCertificatePhotos" name="file" type="file">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">蓝底照片：</label>
            <div class="col-sm-8">
                <input type="hidden" name="blueBackgroundPhoto" th:field="*{blueBackgroundPhoto}">
                <div class="file-loading">
                    <input class="form-control file-upload" id="blueBackgroundPhoto" name="file" type="file">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">提交人：</label>
            <div class="col-sm-8">
                <input name="submitter" th:field="*{submitter}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">提交时间：</label>
            <div class="col-sm-8">
                <input name="submissionTime" th:field="*{submissionTime}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">修改时间：</label>
            <div class="col-sm-8">
                <input name="changeTime" th:field="*{changeTime}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">填写时长：</label>
            <div class="col-sm-8">
                <input name="fillInTime" th:field="*{fillInTime}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">填写设备：</label>
            <div class="col-sm-8">
                <input name="fillInEquipment" th:field="*{fillInEquipment}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">操作系统：</label>
            <div class="col-sm-8">
                <input name="operatingSystem" th:field="*{operatingSystem}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">浏览器：</label>
            <div class="col-sm-8">
                <input name="browser" th:field="*{browser}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">填写国家：</label>
            <div class="col-sm-8">
                <input name="fillInCountries" th:field="*{fillInCountries}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">填写省：</label>
            <div class="col-sm-8">
                <input name="fillInProvince" th:field="*{fillInProvince}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">填写市：</label>
            <div class="col-sm-8">
                <input name="fillInCity" th:field="*{fillInCity}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">现场确认地点：</label>
            <div class="col-sm-8">
                <input name="confirmTheLocationOnSite" th:field="*{confirmTheLocationOnSite}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">成考成绩：</label>
            <div class="col-sm-8">
                <input name="testScores" th:field="*{testScores}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">录取学校：</label>
            <div class="col-sm-8">
                <input name="admissionSchool" th:field="*{admissionSchool}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">录取专业：</label>
            <div class="col-sm-8">
                <input name="admissionMajor" th:field="*{admissionMajor}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">考生号：</label>
            <div class="col-sm-8">
                <input name="studentNumber" th:field="*{studentNumber}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">学号：</label>
            <div class="col-sm-8">
                <input name="studentId" th:field="*{studentId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">学历层次：</label>
            <div class="col-sm-8">
                <input name="educationalLevel" th:field="*{educationalLevel}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">学校代码：</label>
            <div class="col-sm-8">
                <input name="schoolCode" th:field="*{schoolCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所在校别：</label>
            <div class="col-sm-8">
                <input name="schoolType" th:field="*{schoolType}" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input name="remark" th:field="*{remark}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">填写完毕：</label>
            <div class="col-sm-8">
                <select id="completed" name="completed" class="form-control">
                    <option value=""  th:field="*{completed}">---请选择---</option>
                    <option value="0" th:field="*{completed}">否</option>
                    <option value="1" th:field="*{completed}">是</option>
                </select>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: bootstrap-fileinput-js"/>
<script th:inline="javascript">
    var prefix = ctx + "easywenku/studentDetails";
    $("#form-studentDetails-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-studentDetails-edit').serialize());
        }
    }

    $(".file-upload").each(function (i) {
        var val = $("input[name='" + this.id + "']").val()
        $(this).fileinput({
            'uploadUrl': ctx + 'common/upload',
            initialPreviewAsData: true,
            initialPreview: [val],
            maxFileCount: 1,
            autoReplace: true
        }).on('fileuploaded', function (event, data, previewId, index) {
            $("input[name='" + event.currentTarget.id + "']").val(data.response.url)
        }).on('fileremoved', function (event, id, index) {
            $("input[name='" + event.currentTarget.id + "']").val('')
        })
        $(this).fileinput('_initFileActions');
    });
</script>
</body>
</html>
